import Vue from 'vue'
import Vuex from 'vuex'
import home from './home'
import search from './search'
import header from './header'
import getters from './getters'
import app from './modules/app'
import settings from './modules/settings'
import user from './modules/user'
//import permission from './modules/permission'


Vue.use(Vuex)

// export default new Vuex.Store({
//   modules: {
//     home,
//     search,
//     header
//   }
// })

const store = new Vuex.Store({
  modules: {
    app,
    settings,
    user,
    header
    //permission
  },
  getters,
  home,
  search
})
export default store
